home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Caml Light 0.61 / Source / src / lib / char.mli < prev    next >
Encoding:
Text File  |  1993-09-24  |  599 b   |  18 lines  |  [TEXT/MPS ]

  1. (* Character operations *)
  2.  
  3. value int_of_char : char -> int = 1 "identity"
  4.         (* Return the ASCII code of the argument. *)
  5.   and char_of_int : int -> char
  6.         (* Return the character with the given ASCII code.
  7.            Raise [Invalid_argument "char_of_int"] if the argument is
  8.            outside the range 0--255. *)
  9.   and char_for_read : char -> string
  10.         (* Return a string representing the given character,
  11.            with special characters escaped following the lexical conventions
  12.            of Caml Light. *)
  13. ;;
  14.  
  15. (*--*)
  16.  
  17. value is_printable : char -> bool = 1 "is_printable";;
  18.